/**
 * 
 */
package com.homework.datastructures.exercise1.list;

/**
 * @author public_enemy
 * 
 */
public class ArrayListDemo {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		ArrayList<Integer> listOfIntegers = new ArrayList<Integer>(10);
		System.out.println(listOfIntegers.getNumberOfElements());
		
		listOfIntegers.addElement(60);
		System.out.println(listOfIntegers.getNumberOfElements());
		
		listOfIntegers.addElement(70);
		System.out.println(listOfIntegers.getNumberOfElements());

		Integer result = (Integer) listOfIntegers.getElementByIndex(1);
		System.out.println(result);
		System.out.println(listOfIntegers.getNumberOfElements());
		
		listOfIntegers.removeElement();
		System.out.println(listOfIntegers.getNumberOfElements());
	}

}
